<?php

namespace App\Http\Controllers\Home;
use App\Model\Category;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class HomeController extends Controller
{
    public function index(Request $request){
        $list = Category::all();
        return view('home.index',compact('list'));
    }
}
